module.exports = {
  Common: {
    Session_Ssecret: 'koc.anchor.session',
    Physical_Path: {
      File: "/NodeJs/KOC.Anchor/koc-anchor-file/",
      File_Common: "/NodeJs/KOC.Anchor/koc-anchor-file/file.common/",
      File_Common_Temp: "/NodeJs/KOC.Anchor/koc-anchor-file/file.common/Temp/",
      File_Common_Report: "/NodeJs/KOC.Anchor/koc-anchor-file/file.common/Report/",
      File_Common_Event: "/KOC.Anchor/koc-anchor-file/file.common/Event/",
      File_User: "/NodeJs/KOC.Anchor/koc-anchor-file/file.user/",
      Source: "/NodeJs/KOC.Anchor/koc-anchor-source/",
      Static: "/NodeJs/KOC.Anchor/koc-anchor-static/",
      Http_Logs_Cgi: "/NodeJs/KOC.Anchor/access.log"
    },
    Virtual_Path: {
      File_Common: "http://127.0.0.1:2901/file.common/",
      File_Common_Temp: "http://127.0.0.1:2901/file.common/Temp/",
      File_Common_Report: "http://127.0.0.1:2001/file.common/Report/",
      File_Common_Event: "http://127.0.0.1:2001/file.common/Event/",
      File_User: "http://127.0.0.1:2901/file.user/",
      File_Product: "http://127.0.0.1:2901/file.product/",
      Static: "http://127.0.0.1:2900/",
      Utils: "http://127.0.0.1:2001/",
      Utils_CDN: "http://127.0.0.1:12001/",
      Interface: "http://127.0.0.1:2003/",
      Socket: "http://127.0.0.1:3000/",
      Main: "http://127.0.0.1:2999/",
      Admin: "http://127.0.0.1:2000/",
      Admins: "http://127.0.0.1:2004/"
    },
    Domain: "127.0.0.1",
    Port: {
      Socket: 3000,
      Main: 2999,
      Admin: 2000,
      Admins: 2004,
      Utils: 2001,
      Interface: 2003,
      Statis: 2900,
      File: 2901
    },
    MediaCDN: { //视频流CDN配置
      Current: "Tencent", //当前使用视频流CDN名称
      Tencent: {
        PUSH: "rtmp://ts9.xiutv.com/xiyoulive/", //拉流地址
        PULL: "rtmp://bf9.xiutv.com/xiyoulive/{LIVECODE}" //推流地址
      }
    }
  },
  Redis: {
    Session: {
      host: '123.57.32.169',
      port: 6379,
      db: 0,
      pass: 'baoyangyi2014_'
    },
    Socket: {
      port: 6379,
      host: '101.201.77.254',
      family: 4,
      password: 'xiutvredis2016',
      db: 15
    },
    DB: {
      Cache: "Cache",
      Room: "Room",
      Common: "Common"
    },
    ConnConfig: [
      {
        name: "Cache",
        port: 6379,
        host: '123.57.32.169',
        family: 4,
        password: 'baoyangyi2014_',
        db: 1
      },
      {
        name: "Common",
        port: 6379,
        host: '123.57.32.169',
        family: 4,
        password: 'baoyangyi2014_',
        db: 2
      },
      {
        name: "Room",
        port: 6379,
        host: '123.57.32.169',
        family: 4,
        password: 'baoyangyi2014_',
        db: 3
      }
    ]
  },
  Mysql: {
    DB: {
      Common: "Common",
      User: "User",
      Report: "Report",
      Log: "Log"
    },
    ConnConfig: [
      {
        name: "Common",
        connectionLimit: 10,
        host: '101.200.114.60',
        port: 3306,
        user: 'xiutv',
        password: 'XiYou2020',
        database: 'koc-anchor-common'
      },
      {
        name: "User",
        connectionLimit: 10,
        host: '101.200.114.60',
        port: 3306,
        user: 'xiutv',
        password: 'XiYou2020',
        database: 'koc-anchor-user'
      },
      {
        name: "Report",
        connectionLimit: 10,
        host: '101.200.114.60',
        port: 3306,
        user: 'xiutv',
        password: 'XiYou2020',
        database: 'koc-anchor-report'
      },
      {
        name: "Log",
        connectionLimit: 10,
        host: '101.200.114.60',
        port: 3306,
        user: 'xiutv',
        password: 'XiYou2020',
        database: 'koc-anchor-log'
      }
    ]
  },
  Interface: {
    QQContent: {
      APPID: "101242038",
      APPKey: "6f3b0ecbe8fa2c5d5e598202f8e917ab"
    },
    Weibo: {
      WB_AKEY: "1284548952",
      WB_SKEY: "4bd4f6edb8ceb56a5511ab1bb8988b45"
    },
    Weixin: {
      APPID: "wxf8349850629acedf",
      APPKey: "d4624c36b6795d1d99dcf0547af5443d"
    },
    Heepay: {
      Gateway: "https://pay.Heepay.com/Payment/Index.aspx",
      WEB: {
        AgentID: 2108352,
        Key: "8E88E5EAE6EA4E0BAFBFB782",
        Version: "1"
      },
      APP: {
        AgentID: 2106635,
        Key: "E5E55367530C4E50AE84109E",
        Version: "1"
      }
    },
    QCloud: {
      SecretId: 'AKIDeBWedkksoeHl2Bn1eBfx530hROJ2lBXj',
      SecretKey: 'a4NaaUBoGYEi1CGArOp7DmWAcrukW9Qm',
      Live: {
        APIKey: "1553f8b3ed5697093b555b65a75c2a30"
      },
      SMS: {
        APPID: 1400013287,
        APPKey: "530da75dd1c062ba64ffc2a15020f69c",
        Template: {
          VerifyCode: 4266
        }
      }
    },
    Geetest: {
      ID: "552a6e42262ef881fc2c3c06729d2b7f",
      Key: "83382aefd43f028547b7efcb9d6dc92c"
    },
    YunClean: {
      APPID: "201612079046",
      SHA_KEY: "194907CB5128A5503DE780D692721DBC"
    }
  },
  Log4js: {
    Admin: {
      "appenders": [
        {
          "type": "dateFile",
          "filename": "/NodeJs/KOC.Anchor/Log.Access/access.log",
          "pattern": "-yyyy-MM-dd.log",
          "alwaysIncludePattern": false,
          "category": "access"
        },
        {
          "type": "dateFile",
          "filename": "/NodeJs/KOC.Anchor/Log.Error/error.log",
          "pattern": "-yyyy-MM-dd.log",
          "alwaysIncludePattern": false,
          "category": "error"
        },
        {
          "type": "dateFile",
          "filename": "/NodeJs/KOC.Anchor/Log.Info/info.log",
          "pattern": "-yyyy-MM-dd.log",
          "alwaysIncludePattern": false,
          "category": "info"
        }
      ]
    }
  }
};